APP=main
SRC=$(APP).c
OBJ=$(APP).o
CC=gcc
CROSS_COMPILE=arm-linux-gnueabihf-

all: $(APP)
$(APP): $(OBJ)
		$(CROSS_COMPILE)$(CC) -o $(APP) $(OBJ)

$(OBJ): $(SRC)
		$(CROSS_COMPILE)$(CC) -c $(SRC)
